package com.ruoyi.dailyoperations.mapper;

import java.util.List;
import com.ruoyi.dailyoperations.domain.WarrantyClaim;

/**
 * 报修申请Mapper接口
 *
 * @author ruoyi
 * @date 2024-09-14
 */
public interface WarrantyClaimMapper
{
    /**
     * 查询报修申请
     *
     * @param id 报修申请主键
     * @return 报修申请
     */
    public WarrantyClaim selectWarrantyClaimById(Long id);

    /**
     * 查询报修申请列表
     *
     * @param warrantyClaim 报修申请
     * @return 报修申请集合
     */
    public List<WarrantyClaim> selectWarrantyClaimList(WarrantyClaim warrantyClaim);

    /**
     * 新增报修申请
     *
     * @param warrantyClaim 报修申请
     * @return 结果
     */
    public int insertWarrantyClaim(WarrantyClaim warrantyClaim);

    /**
     * 修改报修申请
     *
     * @param warrantyClaim 报修申请
     * @return 结果
     */
    public int updateWarrantyClaim(WarrantyClaim warrantyClaim);
    /**
     * 接单报修申请
     *
     * @param warrantyClaim 报修申请接单
     * @return 结果
     */
    public int receiveWarrantyClaim(WarrantyClaim warrantyClaim);
    /**
     * 拒单报修申请
     *
     * @param warrantyClaim 报修申请拒单
     * @return 结果
     */
    public int rejectWarrantyClaim(WarrantyClaim warrantyClaim);

    /**
     * 删除报修申请
     *
     * @param id 报修申请主键
     * @return 结果
     */
    public int deleteWarrantyClaimById(Long id);

    /**
     * 批量删除报修申请
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteWarrantyClaimByIds(Long[] ids);
}
